/**
 * 
 */
package com.wsd.service;

import java.util.Set;

import com.wsd.bean.OrderList;
import com.wsd.bean.ProductOrder;
import com.wsd.bean.Users;

/**
 * @author TuZiJun
 *
 */
public interface ProductOrderService {
	
	/**
	 * @param orderlist
	 * @param pnum 
	 * @param pid
	 * @param userLevel
	 * @return Set<OrderList>
	 */
	public Set<OrderList> saveProduct(Set<OrderList> orderlist, int pnum, int pid, int userLevel);

	/**
	 * @param orderlist
	 * @param pid
	 * @return
	 */
	public Set<OrderList> deleteProduct(Set<OrderList> orderlist, int pid);

	/**
	 * @param orderlist
	 * @param u
	 * @return
	 */
	public ProductOrder saveProductOrder(Set<OrderList> orderlist, Users user, String ps);
}
